package dfbz.demo04;

public class parsent {
    String name;
    int num=10;
    public parsent() {
    }

    public parsent(String name) {
        this.name = name;
    }

    public void method2(){
        System.out.println("我是父类的方法");
    }
    public void method(){
        System.out.println("覆盖重写方法");
    }
    public Object getStr(){
        return "aa";
    }
    public void eat(){
        System.out.println("今晚吃不吃饭");
    }
}
